

#ifndef __UIBACKGROUNDIMAGE__H__
#define __UIBACKGROUNDIMAGE__H__

#include <UiWin.h>
#include "SHIImagingEx.h"
typedef unsigned char*       HBMDC;

class CUiBackgroundImage : public UiWin
{
public:
	CUiBackgroundImage();
	~CUiBackgroundImage();

	BOOL	InitBacgroundImage(HWND hWnd, HINSTANCE hInst, UINT uID);
	void	PaintWinEx(HDC hdcMem, unsigned char* &pBackDCSrcBmp, RECT* prcWin, RECT* prcUpdate);

protected:
	void	PaintWin(HDC hdc, RECT* prcWin, RECT* prcUpdate);

protected:
	HDC			m_hMemDC;
	HBITMAP		m_hBitmap;

private:
	void	ReleaseMemDc();
public:
	SHIImagingEx			m_hImgEx;

};

#endif //!__UIBACKGROUNDIMAGE__H__